package com.wsjzzcbq.qianyuan.sys.param;

import com.wsjzzcbq.qianyuan.common.bean.BasicParam;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * MenuParam
 *
 * @author wsjz
 * @date 2022/03/19
 */
@Data
public class MenuParam implements BasicParam {

    private String id;

    @NotEmpty(message = "菜单名称不能为空")
    private String title;

    @NotEmpty(message = "菜单路径不能为空")
    private String path;

    @NotEmpty(message = "前端组件不能为空")
    private String component;

    private String parentId;

    private String name;

    private String icon;

    private String redirect;

    private Boolean hidden;

    @NotNull(message = "排序不能为空")
    private Integer sort;

    private Integer type;
}
